package com.carpedil.mq.controller;

import com.carpedil.mq.service.MqAckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/** @author Administrator */
@RestController
public class MqAckController {
  @Autowired MqAckService mqAckService;

  @GetMapping("/send/{msg}")
  public String sendMessage(@PathVariable("msg") String msg) {
    mqAckService.send(msg);
    return "ok";
  }
}
